package com.aaa.dao.impl;

import com.aaa.dao.ITypeDao;
import com.aaa.utils.DBUtil;

import java.util.List;
import java.util.Map;

public class ITypeDaoImpl implements ITypeDao {
    @Override
    public List<Map> findAllType() {
        String sql = "select * from t_type";
        List<Map> maps = DBUtil.queryListMap(sql);
        if(maps.size()>0){
            return maps;
        }
        return null;
    }
}
